#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdbool.h>
void init(int arr[],int size)
{
	for (int i = 0; i < size; i++)
	{
		arr[i] = 0;
	}
}
void print(int arr[], int size)
{
	for (int i = 0; i < size; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}
void reverse(int arr[], int size)
{
	int temp;
	for (int i = 0; i < size/2; i++)
	{
		temp = arr[i];
		arr[i] = arr[size - 1 - i];
		arr[size - 1 - i] = temp;
	}
}
int main()
{
	
	int arr[5] = { 1,2,3,4,5 };
	int size = sizeof(arr) / sizeof(arr[0]);
	print(arr,size);
	reverse(arr, size);
	print(arr, size);
	init(arr, size);
	print(arr, size);
	return 0;
}